package com.lwz.educenter.service;

import com.lwz.educenter.entity.UcenterMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwz.educenter.entity.Vo.RegisterVo;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author Lw中
 * @since 2020-11-18
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    /**
     * 登录方法
     * @param ucenterMember
     * @return
     */
    String login(UcenterMember ucenterMember);

    /**
     * 注册方法
     * @param registerVo
     */
    void register(RegisterVo registerVo);

    /**
     * 通过微信的openid获取用户的信息
     * @param openid
     * @return
     */
    UcenterMember getOpenIdMember(String openid);

    /**
     * 查询一天注册人数
     * @param day
     * @return
     */
    int countRegisterDay(String day);
}
